From 2b1e0dbaea38b817e492ad099cb690ad27dc76e6 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Wed, 22 Dec 2004 06:20:26 +0000 Subject: [PATCH] print out the version and binary name in the header comment. Problem Wed Dec 22 01:17:44 2004 Jonathan Blandford * queryloaders.c (main): print out the version and binary name in the header comment. Problem reported by Seth Nickell. --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/queryloaders.c | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 966245365d..0111c22007 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 22 01:17:44 2004 Jonathan Blandford + + * queryloaders.c (main): print out the version and binary name in + the header comment. Problem reported by Seth Nickell. + 2004-12-16 Matthias Clasen * === Released 2.6.0 === diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index d35b4d3a05..849d2b4d32 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -208,6 +208,7 @@ query_module (const char *dir, const char *file) int main (int argc, char **argv) { gint i; + gchar *prgname; #ifdef G_OS_WIN32 gchar *libdir; @@ -254,10 +255,13 @@ int main (int argc, char **argv) #define PIXBUF_LIBDIR libdir #endif - + prgname = g_get_prgname (); g_printf ("# GdkPixbuf Image Loader Modules file\n" - "# Automatically generated file, do not edit\n" - "#\n"); + "# Automatically generated file, do not edit\n" + "# Created by %s from gtk+-%s\n" + "#\n", + (prgname ? prgname : "gdk-pixbuf-query-loaders"), + GDK_PIXBUF_VERSION); if (argc == 1) { #ifdef USE_GMODULE -- 2.30.2